package ge.gen.eBdgt.persistence;

import ge.gen.eBdgt.vo.DescrVO;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;

public class DescrNoDBdao implements DescrDao {
	private static List descr;
	private static Map descrMap;	

	private static List status;
	private static Map statusMap;
	
	private static List ctgry;	
	private static Map ctgryMap;
	
	private static List reqEngr;
	private static Map reqEngrMap;

	private static List descrList;
	
	
	static {
		descr = new ArrayList();
		descr.add(new DescrVO(new Integer(1), "GEGARD"));
		descr.add(new DescrVO(new Integer(2), "HTSR"));
		descr.add(new DescrVO(new Integer(3), "LCSR"));
		descr.add(new DescrVO(new Integer(4), "FLDRWNC"));
		descr.add(new DescrVO(new Integer(5), "FLDRWEC"));
		descr.add(new DescrVO(new Integer(6), "FLDREP"));
		descr.add(new DescrVO(new Integer(7), "FLDEXCH"));	
		descr.add(new DescrVO(new Integer(8), "EXCITER UPGRADE"));
		descr.add(new DescrVO(new Integer(9), "DOME MOD"));
		descr.add(new DescrVO(new Integer(10), "UPRATE STUDY"));
		descr.add(new DescrVO(new Integer(11), "COOLERS"));
		descr.add(new DescrVO(new Integer(12), "ENG STUDY"));
		descr.add(new DescrVO(new Integer(13), "STATOR RESTACK"));
		descr.add(new DescrVO(new Integer(14), "STAT REP"));
		descr.add(new DescrVO(new Integer(15), "GEN REP"));											
		descr.add(new DescrVO(new Integer(16), "NPI"));			
		descr.add(new DescrVO(new Integer(17), "AUX"));								
		descr.add(new DescrVO(new Integer(18), "MISC"));										
		descrMap = new HashMap();
		Iterator iter = descr.iterator();
		while (iter.hasNext()) {
			DescrVO desc = (DescrVO) iter.next();
			descrMap.put(desc.getDescrId(), desc);
		}
	}	
	
	static {
		status = new ArrayList();
		status.add(new DescrVO(new Integer(1), "A-ACTIVE"));
		status.add(new DescrVO(new Integer(2), "C-CLOSED/COMPLETE"));
		status.add(new DescrVO(new Integer(3), "EC-ENGINEERING COMPLETE"));
		status.add(new DescrVO(new Integer(4), "CANC-CANCEL"));
		statusMap = new HashMap();
		Iterator iter = status.iterator();
		while (iter.hasNext()) {
			DescrVO stat = (DescrVO) iter.next();
			statusMap.put(stat.getDescrId(), stat);
		}
	}
	
	static {
		ctgry = new ArrayList();
		ctgry.add(new DescrVO(new Integer(1), "1 - Profile with Ship Date"));
		ctgry.add(new DescrVO(new Integer(2), "2 - Profile with NO Ship Date"));
		ctgryMap = new HashMap();
		Iterator iter = ctgry.iterator();
		while (iter.hasNext()) {
			DescrVO category = (DescrVO) iter.next();
			ctgryMap.put(category.getDescrId(), category);
		}
	}
	
	static {
		reqEngr = new ArrayList();
		reqEngr.add(new DescrVO(new Integer(0), "         "));
		reqEngr.add(new DescrVO(new Integer(1), "A RAMADAN"));
		reqEngr.add(new DescrVO(new Integer(2), "A MURRIETA"));
		reqEngr.add(new DescrVO(new Integer(3), "C KILLIAN"));
		reqEngr.add(new DescrVO(new Integer(4), "C REVILLE"));
		reqEngr.add(new DescrVO(new Integer(5), "D CONSTANTINO"));
		reqEngr.add(new DescrVO(new Integer(6), "K HOFFMAN"));
		reqEngr.add(new DescrVO(new Integer(7), "M LOVELESS"));
		reqEngr.add(new DescrVO(new Integer(8), "M PRESTON"));
		reqEngr.add(new DescrVO(new Integer(9), "R COTOIA"));
		reqEngr.add(new DescrVO(new Integer(10), "R MAGANA"));
		reqEngr.add(new DescrVO(new Integer(11), "R OIDOR"));
		reqEngrMap = new HashMap();
		Iterator iter = reqEngr.iterator();
		while (iter.hasNext()) {
			DescrVO reqEngineer = (DescrVO) iter.next();
			reqEngrMap.put(reqEngineer.getDescrId(), reqEngineer);
		}
	}
	
	static {
		descrList = new ArrayList();
		descrList.add("");
		descrList.add("3 Compression Bands (Parts only)");
		descrList.add("324 PARTIAL SET OF STATOR REWIND - PARTS ONLY");
		descrList.add("ALTERREX (GEGARD) STATOR REWIND, NEW RTDS");
		descrList.add("COMPLETE LCSR.");
		descrList.add("EX2100 GenX Decomm P Bars Removed");
		descrList.add("FIELD REPLACEMENT, LSTG");
		descrList.add("FIELD REWIND EXISTING COPPER, TERM STUD KIT");
		descrList.add("FIELD REWIND NEW COPPER, HIGH SPEED BALANCE");
		descrList.add("Field Rewind Existing Cu");
		descrList.add("Field Rewind Existing Cu, 1292");
		descrList.add("Field Rewind Existing Cu, RR, CR, 1292");
		descrList.add("Field Rewind Exiting Cu, TIL1292 + Mach");
		descrList.add("GEGARD 600 STATOR");
		descrList.add("GEGARD 600 STATOR & CON RINGSPARTS ONLY");
		descrList
				.add("GEGARD 600 STATOR, FIELD REWIND NEW COOPER, TIL1292 AND HIGH SPEED BALANCE");
		descrList
				.add("GEGARD 600 STATOR, NEW C RINGS, EWSS, FLUX PROBE, GLANDS");
		descrList
				.add("GEGARD 600 STATOR, RETAINING RINGS, HVB, COLLECTOR RINGS.");
		descrList.add("GENERREX DISABLING AND DOME MOD");
		descrList.add("GENERREX DISABLING AND DOME MOD (P-Bars removed)");
		descrList.add("LCSR Parts Only");
		descrList.add("Leaf Spring Modification");
		descrList.add("Sensor Location Report Only");
		descrList.add("TIL 1292");
		descrList.add("TIL 1292, RR INSULATION KIT");
	}

	public List getAllDescr() {
		return descr;
	}

	public Map getDescrMap() {
		return descrMap;
	}

	public List getAllStatus() {
		return status;
	}

	public Map getStatusMap() {
		return statusMap;
	}	
	
	public List getAllCtgry() {
		return ctgry;
	}

	public Map getCtgryMap() {
		return ctgryMap;
	}
	
	public List getAllReqEngr() {
		return reqEngr;
	}

	public Map getReqEngr() {
		return reqEngrMap;
	}
	
	public  List getDescrList() {
		return descrList;
	}

	public  void setDescrList(List descrList) {
		this.descrList = descrList;
	}
}
